<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IList<Complaint.Models.Dtos.Category>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <title>Organisation Categories</title>
    <meta name="description" content="icomplain organisation categories" />
    <meta name="keywords" content="organisation,categories" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script src="<%=Url.Content("~/Scripts/Complaint/Views.Category.Index.js")%>" type="text/javascript"></script>

    <h2>
        Organisation Categories</h2>
    <div id="categoryTree">
        <ul>
            <%  foreach (var c in Model)
                {%>
            <li id="<%= c.CategoryID %>"><a href="#">
                <%= c.Title%></a>
                <%if (c.Children.Count > 0)
                      Html.RenderPartial("Category", c); %>
            </li>
            <%  } %>
        </ul>
    </div>
</asp:Content>
